/**
*  
* @Function ES聚合条件实体类
* @ProjectName credit-framework-common
* @PackageName com.py.credit.utils.elasticsearch    
* @FileName EsAggregationEntity.java    
* @Date 2018年11月5日下午4:09:43
* @Author Min DongXv
* @Copyright (c) 2018, 金电联行 All Rights Reserved.   
*   
*/  
package com.py.credit.utils.elasticsearch;

import java.io.Serializable;

/**
 * 
 * @Function ES聚合条件实体类
 * @ClassName EsAggregationEntity
 * @Date 2018年11月5日 下午4:09:43
 * @Author Min DongXv
 * 
 */
public class EsAggregationEntity implements Serializable {

	private static final long serialVersionUID = -6965605473659100046L;
	// 聚合字段
	private String field;
	// 聚合字段别名
	private String alias;
	// 聚合操作 1聚合-计数 2聚合-平均值 3聚合-最大值 4聚合-最小值 5聚合-加权平均值 6聚合-求和
	private int aggregateOperation;

	/**
	 * @return the field
	 */
	public String getField() {
		return field;
	}

	/**
	 * @param field
	 *            the field to set
	 */
	public void setField(String field) {
		this.field = field;
	}

	/**
	 * @return the alias
	 */
	public String getAlias() {
		return alias;
	}

	/**
	 * @param alias
	 *            the alias to set
	 */
	public void setAlias(String alias) {
		this.alias = alias;
	}

	/**
	 * @return the aggregateOperation
	 */
	public int getAggregateOperation() {
		return aggregateOperation;
	}

	/**
	 * @param aggregateOperation
	 *            the aggregateOperation to set
	 */
	public void setAggregateOperation(int aggregateOperation) {
		this.aggregateOperation = aggregateOperation;
	}

	@Override
	public String toString() {
		return "EsAggregationEntity [field=" + field + ", alias=" + alias + ", aggregateOperation=" + aggregateOperation
				+ "]";
	}
}
